﻿public class HomeWork {
	public static void main(String[] args) {
		int x = 20;
		for (int i = 1; i <= x; i++) {
			if(i==1||i==x){
			for (int j = 1; j <= x; j++) {
				System.out.print("*");
			}
			}
			else{
				for (int j = 1; j <= x; j++) {
					if(j==1||j==x){
						System.out.print("*");
					}
					else{
						System.out.print(" ");
					}
				}
			}
			System.out.println();
		}
	}
}